﻿using JSLintForResharper.Resharper.Highlighting;
using JetBrains.ReSharper.Daemon;
using JetBrains.ReSharper.Daemon.JavaScript;
using JetBrains.ReSharper.Psi;
using NUnit.Framework;

namespace JSLintForResharper.Tests.Resharper.AcceptanceTests
{
	[TestFixture]
	public class HighlightingTests : JavaScriptHighlightingTestBase
	{
		protected override bool HighlightingPredicate(IHighlighting highlighting, IPsiSourceFile sourceFile)
		{
			return highlighting is LintHighlighting;
		}

		[Test]
		//[TestCase("OneLineWithUndefined.js")] overridden?
		[TestCase("UndefinedGlobalAndSemi.js")]
		[TestCase("Closure.js")]
		[TestCase("MingledHtml.htm")]
		[TestCase("GlobalsSemiAndComma.js")]
		[TestCase("MingledAspx.aspx")]
		public void TestHighlighting(string file)
		{
			DoTestFiles(file);
		}
	}
}
